package top.lishuoboy.cloud.consumer.order80;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.netflix.hystrix.EnableHystrix;
import org.springframework.cloud.netflix.ribbon.RibbonClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import top.lishuoboy.cloud.consumer.myrule.MyRibbonRule;

// @EnableEurekaClient // 可以不加
// @EnableDiscoveryClient  // 可以不加。该注解用于向使用consul或者zookeeper或者nacos作为注册中心时注册服务
@RibbonClient(name = "cloud-payment-service", configuration = MyRibbonRule.class)  // 负载均衡策略。name对大小写敏感
@EnableFeignClients
@EnableHystrix  // 继承了 @EnableCircuitBreaker
@SpringBootApplication
public class CloudConsumerOrder80Application {

    public static void main(String[] args) {
        SpringApplication.run(CloudConsumerOrder80Application.class, args);
    }

}